Javascript PropertiesonKeyUp Event

Arguments

eventEvent

An object that contains properties and methods for inspecting and manipulating the browser event. This object can be referenced in JavaScript added to the event, either through Action Javascript or using Text Mode.

See Event (MDN Web Docs) for more details.

Description

Fires when the user releases a key after it has been pressed and the control has focus.

Discussion

The onKeyUp event fires when the user releases a key that has been pressed. It is the last event to fire after the onKeyDown and onKeyPress events.

You can add Action Javascript, custom JavaScript, or sever-side Xbasic to execute one or more actions to this event.

For more information about keyboard events, see [Mozilla's documentation on KeyboardEvents] or the developer documentation for your favorite web browser.

Example

// Submit the Grid Row if the Enter Key has been pressed
if (event.keyCode == 13) {
   // Enter key has been pressed

   // Simulate clicking the SAVE button for the row:
   {grid.object}.submitGridPartRow({grid.rownumber});
}